
<!DOCTYPE html>
<html lang="">


<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
  <meta name="theme-color" content="#202020"/>
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <script src="/js/busuanzi.pure.mini.js" async></script>
  
  
    <meta name="keywords" content="Emberjs,Ember-Teach,Emberjs教程目录," />
  

  
    <meta name="description" content="一个专注一coding的网站。提供丰富编程知识，包括Spring、Java、EmberJS、SpringBoot等等技术。" />
  
  
  <link rel="icon" type="image/x-icon" href="/image/favicon.ico">
  <title>Ember-Teach教程目录 [ Keep Coding ]</title>
  
    <!-- stylesheets list from config.yml -->
    
      <link rel="stylesheet" href="/css/pure-min.css">
    
      <link rel="stylesheet" href="/css/xoxo.css">
    
  
<meta name="generator" content="Hexo 5.0.2"><link rel="alternate" href="/atom.xml" title="Keep Coding" type="application/atom+xml">
</head>

<body>
  <div class="nav-container">
    <nav class="home-menu pure-menu pure-menu-horizontal">
  <a class="pure-menu-heading" href="/">
    <img class="avatar" src="/image/favicon.ico">
    <span class="title">Keep Coding</span>
  </a>

  <ul class="pure-menu-list clearfix">
      
          
            <li class="pure-menu-item"><a href="/" class="pure-menu-link">首页</a></li>
          
      
          
            <li class="pure-menu-item"><a href="/archives" class="pure-menu-link">归档</a></li>
          
      
          
            <li class="pure-menu-item"><a href="/tags" class="pure-menu-link">标签</a></li>
          
      
          
            <li class="pure-menu-item"><a href="/search" class="pure-menu-link">搜索</a></li>
          
      
          
            <li class="pure-menu-item"><a href="/about" class="pure-menu-link">关于</a></li>
          
      
          
            <li class="pure-menu-item"><a href="/atom.xml" class="pure-menu-link">订阅</a></li>
          
      
  </ul>
   
</nav>
  </div>

  <div class="container" id="content-outer">
    <div class="inner" id="content-inner">
      <div class="post-container">
  <article class="post" id="post">
    <header class="post-header text-center">
      <h1 class="title">
        Ember-Teach教程目录
      </h1>
      <span>
        
        <time class="time" datetime="2020-01-18T14:50:37.000Z">
        2020-01-18
      </time>
        
      </span>
      <span class="slash">/</span>
      <span class="post-meta">
      <span class="post-tags">
        <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Ember-Teach/" rel="tag">Ember-Teach</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Emberjs/" rel="tag">Emberjs</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Emberjs%E6%95%99%E7%A8%8B%E7%9B%AE%E5%BD%95/" rel="tag">Emberjs教程目录</a></li></ul>
      </span>
    </span>
      <span class="slash">/</span>
      <span class="read">
      <span id="busuanzi_value_page_pv"></span> 点击
    </span>
      <span class="slash">/</span>
      <span class="read">阅读耗时 1 分钟</span>
    </header>

    <div class="post-content">
      <h1 id="ember-teach"><a href="#ember-teach" class="headerlink" title="ember-teach"></a>ember-teach</h1><p>Ember Teach博客文章md文件。网址：<a href="http://xcoding.tech/tags/Emberjs/">http://xcoding.tech/tags/Emberjs/</a></p>
<p><strong>目录</strong></p>
<h2 id="第一章-对象模型"><a href="#第一章-对象模型" class="headerlink" title="第一章 对象模型"></a>第一章 对象模型</h2><ol>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/The%20Object%20Model/%E7%B1%BB%E7%9A%84%E5%AE%9A%E4%B9%89%E3%80%81%E5%88%9D%E5%A7%8B%E5%8C%96%E3%80%81%E7%BB%A7%E6%89%BF">类的定义、初始化、继承</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/The%20Object%20Model/%E7%B1%BB%E7%9A%84%E6%89%A9%E5%B1%95%EF%BC%88reopen%EF%BC%89">类的扩展（reopen）</a></li>
<li>[计算属性（compute properties）](<a href="http://xcoding.tech/2018/08/04/ember-teach/The%20Object%20Model/%E8%AE%A1%E7%AE%97%E5%B1%9E%E6%80%A7%EF%BC%88compute">http://xcoding.tech/2018/08/04/ember-teach/The%20Object%20Model/计算属性（compute</a> properties）)</li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/The%20Object%20Model/%E8%A7%82%E5%AF%9F%E8%80%85%EF%BC%88observer%EF%BC%89">观察者（observer）</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/The%20Object%20Model/%E7%BB%91%E5%AE%9A%EF%BC%88bingding%EF%BC%89">绑定（bingding）</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/The%20Object%20Model/%E6%9E%9A%E4%B8%BE%EF%BC%88enumerables%EF%BC%89">枚举（enumerables）</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/The%20Object%20Model/%E5%AF%B9%E8%B1%A1%E6%A8%A1%E5%9E%8B%E5%B0%8F%E7%BB%93">对象模型小结</a></li>
</ol>
<h2 id="第二章-模板"><a href="#第二章-模板" class="headerlink" title="第二章 模板"></a>第二章 模板</h2><ol>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/handlebars%E5%9F%BA%E7%A1%80">handlebars基础</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/handlebars%E6%9D%A1%E4%BB%B6%E8%A1%A8%E8%BE%BE%E5%BC%8F">handlebars条件表达式</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/handlebars%E9%81%8D%E5%8E%86%E6%A0%87%E7%AD%BE">handlebars遍历标签</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/handlebars%E6%98%BE%E7%A4%BA%E5%AF%B9%E8%B1%A1%E7%9A%84%E9%94%AE">handlebars显示对象的键</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/handlebars%E5%B1%9E%E6%80%A7%E7%BB%91%E5%AE%9A">handlebars属性绑定</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/link-to%20helper">link-to%20helper</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/%E7%95%AA%E5%A4%96%E7%AF%87%EF%BC%8C%E8%B7%AF%E7%94%B1%E3%80%81%E6%A8%A1%E6%9D%BF%E7%9A%84%E6%89%A7%E8%A1%8C%E3%80%81%E6%B8%B2%E6%9F%93%E9%A1%BA%E5%BA%8F">番外篇，路由、模板的执行、渲染顺序</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/action%20helper">action%20helper</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/%E8%A1%A8%E5%8D%95%E5%85%83%E7%B4%A0">表单元素</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/%E8%B0%83%E8%AF%95%E5%8A%A9%E6%89%8B">调试助手</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/%E5%B7%A5%E5%85%B7%E7%B1%BB%E7%9A%84%E5%8A%A9%E6%89%8B">工具类的助手</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/templetes/%E6%A8%A1%E6%9D%BF%E5%B0%8F%E7%BB%93">模板小结</a></li>
</ol>
<h2 id="第三章-路由"><a href="#第三章-路由" class="headerlink" title="第三章 路由"></a>第三章 路由</h2><ol>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/routing/%E8%B7%AF%E7%94%B1%E5%AE%9A%E4%B9%89">路由定义</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/routing/%E6%8C%87%E5%AE%9A%E4%B8%8E%E8%B7%AF%E7%94%B1%E5%85%B3%E8%81%94%E7%9A%84%E6%A8%A1%E5%9E%8B">指定与路由关联的模型</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/routing/%E6%A8%A1%E6%9D%BF%E6%B8%B2%E6%9F%93">模板渲染</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/routing/%E8%B7%AF%E7%94%B1%E9%87%8D%E5%AE%9A%E5%90%91">路由重定向</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/routing/%E8%B7%AF%E7%94%B1%E5%88%87%E6%8D%A2%E7%9A%84%E9%98%B2%E6%AD%A2%E5%92%8C%E9%87%8D%E8%AF%95">路由切换的防止和重试</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/routing/loading%E3%80%81error%E5%AD%90%E8%B7%AF%E7%94%B1">loading、error子路由</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/routing/%E6%9F%A5%E8%AF%A2%E5%8F%82%E6%95%B0">查询参数</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/routing/%E5%BC%82%E6%AD%A5%E8%B7%AF%E7%94%B1">异步路由</a></li>
</ol>
<h2 id="第四章-组件"><a href="#第四章-组件" class="headerlink" title="第四章 组件"></a>第四章 组件</h2><ol>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/components/%E7%BB%84%E4%BB%B6%E5%AE%9A%E4%B9%89">组件定义</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/components/%E5%B1%9E%E6%80%A7%E4%BC%A0%E9%80%92">属性传递</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/components/%E5%8C%85%E8%A3%B9%E5%86%85%E5%AE%B9">包裹内容</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/components/%E8%87%AA%E5%AE%9A%E4%B9%89%E5%8C%85%E8%A3%B9%E7%BB%84%E4%BB%B6%E7%9A%84HTML%E6%A0%87%E7%AD%BE">自定义包裹组件的HTML标签</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/components/%E5%A4%84%E7%90%86%E4%BA%8B%E4%BB%B6">处理事件</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/components/action%E8%A7%A6%E5%8F%91%E5%8F%98%E5%8C%96">action触发变化</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/components/%E7%BB%84%E4%BB%B6%E5%B0%8F%E8%8A%82">组件小节</a></li>
</ol>
<h2 id="第五章-控制器"><a href="#第五章-控制器" class="headerlink" title="第五章 控制器"></a>第五章 控制器</h2><ol>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/controllers/%E6%8E%A7%E5%88%B6%E5%99%A8%EF%BC%88controller%EF%BC%89">控制器（controller）</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/controllers/%E7%AE%A1%E7%90%86%E6%8E%A7%E5%88%B6%E5%99%A8%E4%B9%8B%E9%97%B4%E7%9A%84%E4%BE%9D%E8%B5%96%E5%85%B3%E7%B3%BB">管理控制器之间的依赖关系</a></li>
</ol>
<h2 id="第六章-模型"><a href="#第六章-模型" class="headerlink" title="第六章 模型"></a>第六章 模型</h2><ol>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/models/model%E7%AE%80%E4%BB%8B/">model简介</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/models/%E5%AE%9A%E4%B9%89%E6%A8%A1%E5%9E%8B">定义模型</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/models/%E6%9F%A5%E8%AF%A2%E8%AE%B0%E5%BD%95">查询记录</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/models/%E6%96%B0%E5%BB%BA%E3%80%81%E6%9B%B4%E6%96%B0%E3%80%81%E5%88%A0%E9%99%A4%E8%AE%B0%E5%BD%95">新建、更新、删除记录</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/models/%E8%AE%BE%E7%BD%AE%E8%AE%B0%E5%BD%95%E5%88%B0Store">设置记录到Store</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/models/model%E7%9A%84%E5%85%B3%E8%81%94%E5%85%B3%E7%B3%BB%E5%A4%84%E7%90%86">model的关联关系处理</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/models/%E5%85%83%E6%95%B0%E6%8D%AE">元数据</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/models/%E8%87%AA%E5%AE%9A%E4%B9%89%E9%80%82%E9%85%8D%E5%99%A8">自定义适配器</a></li>
<li><a href="http://xcoding.tech/2018/08/04/ember-teach/models/%E8%87%AA%E5%AE%9A%E4%B9%89%E5%BA%8F%E5%88%97%E5%8F%B7%E5%99%A8">自定义序列号器</a></li>
</ol>
<h3 id="源码"><a href="#源码" class="headerlink" title="源码"></a>源码</h3><ol>
<li><a target="_blank" rel="noopener" href="http://blog.ddlisting.com/2016/03/29/ember-jsxue-xi-xiang-mu-yuan-ma-fa-bu/">天天清单源码发布…啦…啦…………</a></li>
<li><a target="_blank" rel="noopener" href="https://github.com/ubuntuvim/my_emberjs_code">博客演示源码</a></li>
<li><a target="_blank" rel="noopener" href="https://github.com/ubuntuvim/library-app">如何构建一个复杂的Ember.js项目_源码</a></li>
</ol>
<p>博文经过多次修改，博文上的代码与github代码可能有出入，不过影响不大！如果你觉得博文对你有点用，给我点个赞吧。您的肯定对我来说是最大的动力！！</p>

    </div>

      
    <div class="post-nav">
      <div class="post-nav-item post-nav-next">
        
          <span>〈 </span>
          <a href="/2020/01/18/ember-teach/ember.js%E6%9C%80%E5%B8%B8%E7%94%A8%E7%9A%84addon/" rel="next" title="addon收集">
          addon收集
          </a>
        
      </div>
  
      <div class="post-nav-item post-nav-prev">
          
          <a href="/2020/01/18/design-pattern/Builder%E6%A8%A1%E5%BC%8F%E2%80%94%E2%80%94%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/" rel="prev" title="Builder模式——设计模式">
            Builder模式——设计模式
          </a>
          <span>〉</span>
        
      </div>
    </div>
  
  </article>
  <div class="toc-container">
    
  <div id="toc" class="toc-article">
    <strong class="toc-title">目录</strong>
    <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#ember-teach"><span class="toc-text">ember-teach</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E4%B8%80%E7%AB%A0-%E5%AF%B9%E8%B1%A1%E6%A8%A1%E5%9E%8B"><span class="toc-text">第一章 对象模型</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E4%BA%8C%E7%AB%A0-%E6%A8%A1%E6%9D%BF"><span class="toc-text">第二章 模板</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E4%B8%89%E7%AB%A0-%E8%B7%AF%E7%94%B1"><span class="toc-text">第三章 路由</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E5%9B%9B%E7%AB%A0-%E7%BB%84%E4%BB%B6"><span class="toc-text">第四章 组件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E4%BA%94%E7%AB%A0-%E6%8E%A7%E5%88%B6%E5%99%A8"><span class="toc-text">第五章 控制器</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E5%85%AD%E7%AB%A0-%E6%A8%A1%E5%9E%8B"><span class="toc-text">第六章 模型</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%BA%90%E7%A0%81"><span class="toc-text">源码</span></a></li></ol></li></ol></li></ol>
  </div>


  </div>
</div>


<div class="copyright">
    <span>本作品采用</span>
    <a target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by/4.0/">知识共享署名 4.0 国际许可协议</a>
    <span>进行许可。 转载时请注明原文链接。</span>
</div>
<div class="share">

</div>
<div class="post-container">
    <article class="post">
      <div id="container"></div>
    </article>
</div>

<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
<script>
var gitment = new Gitment({
  id: 'Ember-Teach教程目录', // 可选。默认为 location.href
  owner: 'ubuntuvim',
  repo: 'ubuntuvim.github.io',
  oauth: {
    client_id: '48b3df0bf4ba1743e0a3',
    client_secret: 'c6c2cec09acb5eecc9d325d56cef187264aa1e16',
  },
})
gitment.render('container')
</script>



    </div>

    

  </div>
  <footer class="footer text-center">
    <div id="bottom-inner">
        <a class="bottom-item" href="http://xcoding.tech/">首页</a> |
        <a class="bottom-item" href="http://xcoding.tech/" target="_blank">主站</a> |
        <a class="bottom-item" href="https://github.com/ubuntuvim" target="_blank">GitHub</a> |
        <a class="bottom-item" href="https://hexo.io" target="_blank">Powered by hexo</a> |
        <a class="bottom-item" href="https://github.com/KevinOfNeu/hexo-theme-xoxo" target="_blank">Theme xoxo</a>
    </div>
</footer>


  <script src='https://unpkg.com/mermaid@7.1.2/dist/mermaid.min.js'></script>
  <script>
    if (window.mermaid) {
      mermaid.initialize({theme: 'forest'});
    }
  </script>


  
  <!-- scripts list from theme config.yml -->
  
    <script src="/js/zepto.min.js"></script>
  


<script>
  (function(window, document, undefined) {

    var timer = null;

    function returnTop() {
      cancelAnimationFrame(timer);
      timer = requestAnimationFrame(function fn() {
        var oTop = document.body.scrollTop || document.documentElement.scrollTop;
        if (oTop > 0) {
          document.body.scrollTop = document.documentElement.scrollTop = oTop - 50;
          timer = requestAnimationFrame(fn);
        } else {
          cancelAnimationFrame(timer);
        }
      });
    }

    var hearts = [];
    window.requestAnimationFrame = (function() {
      return window.requestAnimationFrame ||
        window.webkitRequestAnimationFrame ||
        window.mozRequestAnimationFrame ||
        window.oRequestAnimationFrame ||
        window.msRequestAnimationFrame ||
        function(callback) {
          setTimeout(callback, 1000 / 60);
        }
    })();
    init();

    function init() {
      css(".heart{z-index:9999;width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: absolute;}.heart:after{top: -5px;}.heart:before{left: -5px;}");
      attachEvent();
      gameloop();
      addMenuEvent();
    }

    function gameloop() {
      for (var i = 0; i < hearts.length; i++) {
        if (hearts[i].alpha <= 0) {
          document.body.removeChild(hearts[i].el);
          hearts.splice(i, 1);
          continue;
        }
        hearts[i].y--;
        hearts[i].scale += 0.004;
        hearts[i].alpha -= 0.013;
        hearts[i].el.style.cssText = "left:" + hearts[i].x + "px;top:" + hearts[i].y + "px;opacity:" + hearts[i].alpha + ";transform:scale(" + hearts[i].scale + "," + hearts[i].scale + ") rotate(45deg);background:" + hearts[i].color;
      }
      requestAnimationFrame(gameloop);
    }

    /**
     * 给logo设置点击事件
     * 
     * - 回到顶部
     * - 出现爱心
     */
    function attachEvent() {
      var old = typeof window.onclick === "function" && window.onclick;
      var logo = document.getElementById("logo");
      if (logo) {
        logo.onclick = function(event) {
          returnTop();
          old && old();
          createHeart(event);
        }
      }
      
    }

    function createHeart(event) {
      var d = document.createElement("div");
      d.className = "heart";
      hearts.push({
        el: d,
        x: event.clientX - 5,
        y: event.clientY - 5,
        scale: 1,
        alpha: 1,
        color: randomColor()
      });
      document.body.appendChild(d);
    }

    function css(css) {
      var style = document.createElement("style");
      style.type = "text/css";
      try {
        style.appendChild(document.createTextNode(css));
      } catch (ex) {
        style.styleSheet.cssText = css;
      }
      document.getElementsByTagName('head')[0].appendChild(style);
    }

    function randomColor() {
      // return "rgb(" + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + ")";
      return "#F44336";
    }

    function addMenuEvent() {
      var menu = document.getElementById('menu-main-post');
      if (menu) {
        var toc = document.getElementById('toc');
        if (toc) {
          menu.onclick = function() {
            if (toc) {
              if (toc.style.display == 'block') {
                toc.style.display = 'none';
              } else {
                toc.style.display = 'block';
              }
            }
          };
        } else {
          menu.style.display = 'none';
        }
      }
    }

  })(window, document);
</script>

  



</body>
</html>
